import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index'
import {createPinia} from 'pinia'
// pinia持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' 
import './components/index'
import tableTitle from './components/tableTitle.vue'

import App from './App.vue'
let pinia=createPinia();
pinia.use(piniaPluginPersistedstate) //让pinia使用持久化插件
let app=createApp(App);
app.use(ElementPlus)
// 
app.component('tableTitle', tableTitle);
app.use(router)
app.use(pinia)
app.mount('#app')
